package com.zhonghui.modlules.order.eshopVo;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

@TableName("store_order_status")
public class StoreOrderStatus implements Serializable {
    @TableId
    private Long id;
    private Long oid;
    private String changeType;
    private String changeMessage;
    private Date changeTime;

    public void copy(StoreOrderStatus source) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
    }

    public StoreOrderStatus() {
    }

    public Long getId() {
        return this.id;
    }

    public Long getOid() {
        return this.oid;
    }

    public String getChangeType() {
        return this.changeType;
    }

    public String getChangeMessage() {
        return this.changeMessage;
    }

    public Date getChangeTime() {
        return this.changeTime;
    }

    public void setId(final Long id) {
        this.id = id;
    }

    public void setOid(final Long oid) {
        this.oid = oid;
    }

    public void setChangeType(final String changeType) {
        this.changeType = changeType;
    }

    public void setChangeMessage(final String changeMessage) {
        this.changeMessage = changeMessage;
    }

    public void setChangeTime(final Date changeTime) {
        this.changeTime = changeTime;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof StoreOrderStatus)) {
            return false;
        } else {
            StoreOrderStatus other = (StoreOrderStatus)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label71: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label71;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label71;
                    }

                    return false;
                }

                Object this$oid = this.getOid();
                Object other$oid = other.getOid();
                if (this$oid == null) {
                    if (other$oid != null) {
                        return false;
                    }
                } else if (!this$oid.equals(other$oid)) {
                    return false;
                }

                label57: {
                    Object this$changeType = this.getChangeType();
                    Object other$changeType = other.getChangeType();
                    if (this$changeType == null) {
                        if (other$changeType == null) {
                            break label57;
                        }
                    } else if (this$changeType.equals(other$changeType)) {
                        break label57;
                    }

                    return false;
                }

                Object this$changeMessage = this.getChangeMessage();
                Object other$changeMessage = other.getChangeMessage();
                if (this$changeMessage == null) {
                    if (other$changeMessage != null) {
                        return false;
                    }
                } else if (!this$changeMessage.equals(other$changeMessage)) {
                    return false;
                }

                Object this$changeTime = this.getChangeTime();
                Object other$changeTime = other.getChangeTime();
                if (this$changeTime == null) {
                    if (other$changeTime == null) {
                        return true;
                    }
                } else if (this$changeTime.equals(other$changeTime)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof StoreOrderStatus;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $oid = this.getOid();
        result = result * 59 + ($oid == null ? 43 : $oid.hashCode());
        Object $changeType = this.getChangeType();
        result = result * 59 + ($changeType == null ? 43 : $changeType.hashCode());
        Object $changeMessage = this.getChangeMessage();
        result = result * 59 + ($changeMessage == null ? 43 : $changeMessage.hashCode());
        Object $changeTime = this.getChangeTime();
        result = result * 59 + ($changeTime == null ? 43 : $changeTime.hashCode());
        return result;
    }

    public String toString() {
        return "StoreOrderStatus(id=" + this.getId() + ", oid=" + this.getOid() + ", changeType=" + this.getChangeType() + ", changeMessage=" + this.getChangeMessage() + ", changeTime=" + this.getChangeTime() + ")";
    }
}

